package com.zby.ss.util;

/**
 * Created By zby on 20:46 2019/2/13
 * 字符串的工具类
 */

public class StringHelper {

    /**
     * Created By zby on 20:50 2019/2/13
     * 判断字符串是否为null
     */
    public static boolean isEmpty(String param) {
        return null == param ? true : false;
    }

    /**
     * Created By zby on 20:55 2019/2/13
     * 属性名称不为空，且字长度不为0
     */
    public static boolean isBlank(String param) {
        return null == param && 0 == param.length() ? true : false;
    }

    /**
     * Created By zby on 20:50 2019/2/13
     * 字符串不为null
     */
    public static boolean isNotEmpty(String param) {
        return null != param ? true : false;
    }

    /**
     * Created By zby on 20:50 2019/2/13
     * 字符串不为null
     */
    public static boolean isNotBlank(String param) {
        return null != param && param.length() > 0 ? true : false;
    }

}
